﻿package chapter_07_Homework;

import java.util.*;

public class Work_02 {
	public static void main(String[] args) {
		int[] scores = new int[5];
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入5位学员的成绩：");
		for (int i = 0; i < scores.length; i++) {
			scores[i] = sc.nextInt();
		}
		Arrays.sort(scores);
		System.out.println("排序后的成绩是：");
		for (int i = 0; i < scores.length; i++) {
			System.out.print(scores[i]+" ");		
		}
	}
}
